package com.hs.jhzd.entity;

import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.*;
import java.util.Date;

@Entity
@Data
@Table(name = "jh_spddxqb")
public class OrderGoods {
    @Id
    @Column(name = "ZYBH")
    private String zybh;

    @Column(name = "ZZSL")
    private int finalQuantity;

    @Column(name = "SPBH")
    private String goodsId;


    @Column(name = "SPMC")
    private String goodsName;

    @Column(name = "ZJ")
    private String zj;

    // 下单数量
    @Column(name = "SPSL")
    private int quantity;

    @Column(name = "ZT")
    private String state;

    // 最终审核通过总价
    @Column(name = "ZZZJ")
    private double subFinalPrice;

    // 下单总价
    @Column(name = "DDZJ")
    private double subTotalPrice;

    @Column(name = "SPDJ")
    private double unitPrice;

    @Column(name = "DDBH")
    private String ddbh;

    @Column(name = "SJC", updatable = true)
    @CreationTimestamp
    @Temporal(TemporalType.TIMESTAMP)
    private Date sjc;

    @Column(name = "JSBH")
    private String jsbh;

    @Column(name = "JSMC")
    private String jsmc;

    @Column(name = "SCBJ", columnDefinition = "tinyint default 0")
    private Integer scbj;

    @Column(name = "BZ")
    private Boolean bz;


}
